.page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  .title {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    font-weight: bold;
  }
  .text-container {
    // padding: 24px;
    // box-sizing: border-box;
    // background: yellow;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 24px;

    .word {
      height: auto;
      width: fit-content;
      font-size: 44px;
      font-weight: bold;
      // 给个下边框
      border-bottom: 4px solid black;
      padding: 0 12px;
      position: relative;
      &.active {
        // 加一个闪烁的底部边框效果动画
        animation: pulse 2s infinite;
      }
      &.correct {
        border-bottom: 4px solid green;
      }
      &.incorrect {
        border-bottom: 4px solid red;
      }

      .original-word {
        opacity: 0;
      }
      .input-word {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }
    .input {
      width: 100%;
      height: 100%;
      // opacity: 0;
      opacity: 1;
      // background-color: gray;
      position: absolute;
      // 不允许全选选中
      user-select: none;
      border: none;
      outline: none;
      font-size: 24px;
      // position: fixed;
      // bottom: 0;
      // left: 0;
      // z-index: 1;
      background-color: pink;
    }
  }
}

@keyframes pulse {
  0% {
    border-bottom: 4px solid white;
  }
  25% {
    border-bottom: 4px solid black;
  }
  50% {
    border-bottom: 4px solid white;
  }
  75% {
    border-bottom: 4px solid black;
  }
  100% {
    border-bottom: 4px solid white;
  }
}
